//
//  CLDefintion.h
//  CLBasicsDemo
//
//  Created by 小草毋正 on 2017/9/13.
//  Copyright © 2017年 zbw. All rights reserved.
//

#ifndef CLDefintion_h
#define CLDefintion_h


#define SCREEN_HEIGHT [[UIScreen mainScreen] bounds].size.height
#define SCREEN_WIDTH  [[UIScreen mainScreen] bounds].size.width

#define RGBA(r, g, b, a) [UIColor colorWithRed:R/255.0 green:G/255.0 blue:B/255.0 alpha:A]
#define RGB(r, g, b)     RGBA(r, g, b, 1.0f)

#define ISRetina ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 960), [[UIScreen mainScreen] currentMode].size) : NO)



#ifdef DEBUG
    #define NSLog(...) NSLog(__VA_ARGS__)
#else
    #define NSLog(...)
#endif

#define METHODNAME NSLog(@"%s", __func__);

#if TARGET_IPHONE_SIMULATOR
    #define SIMULATOR 1
#elif TARGET_OS_IPHONE
    #define SIMULATOR 0
#endif




#endif /* CLDefintion_h */





